package com.parse.ip.parseip.pareservice.impl;

import com.parse.ip.parseip.entity.Telephone;
import com.parse.ip.parseip.pareservice.PareInterplace;
import com.parse.ip.parseip.utils.Parse;

import java.io.IOException;
import java.net.MalformedURLException;

public class PareInterpalceImpl implements PareInterplace {
    @Override
    public String parseIp(String ip) throws IOException {
        String ipNetwork = Parse.parseUrl(ip);
        return ipNetwork;
    }

    @Override
    public Telephone paseTelephone(String tele) throws MalformedURLException {
        Telephone telephone = Parse.parseTele(tele);
        return telephone;
    }
}
